// Initialize the application after everything is loaded up and ready.
private function initApp():void {
	messageCollection.addItem("...Now listening for messages...");
	amfChannel.pollingEnabled = true;
	amfChannel.pollingInterval = 3000;
	cs.addChannel(amfChannel);
	consumer.channelSet = cs;
	consumer.subscribe();
}